addElementSpacedH

fun <E : Widget> addElementSpacedH(id: String, element: E, parent: String, spacingH: Int, vararg positions: PopupWidget.Builder.Position): PopupWidget.Builder

Deprecated

Use 'add' and 'push/popSpacing' instead

Adds an element with custom vertical padding, keyed off a manually defined parent element.

NOTE: "element" here refers to a piece of a PopupWidget layout. "Elements" do NOT necessarily have to be minecraft Element

Return

Builder - this builder for further use

Author

fzzyhmstrs

Since

0.2.0

Parameters

E
  • Any subclass of Widget

id

String - the id of this element, used when an element refers to this one as a parent

element

E - the widget

parent

String - the id of the parent to key layout of this new element off of.

spacingH

Int - the custom vertical padding

positions

vararg Position - defines the layout arrangement of this element compared to its parent. See the doc for Position for details.


fun <E : Widget> addElementSpacedH(id: String, element: E, spacingH: Int, vararg positions: PopupWidget.Builder.Position): PopupWidget.Builder

Deprecated

Use 'add' and 'push/popSpacing' instead

Adds an element with custom vertical padding, automatically keyed off the last added element (or "title" if this is the first added element)

NOTE: "element" here refers to a piece of a PopupWidget layout. "Elements" do NOT necessarily have to be minecraft Element

Return

Builder - this builder for further use

Author

fzzyhmstrs

Since

0.2.0

Parameters

E
  • Any subclass of Widget

id

String - the id of this element, used when an element refers to this one as a parent

element

E - the widget

spacingH

Int - the custom vertical padding

positions

vararg Position - defines the layout arrangement of this element compared to its parent. See the doc for Position for details.